function start()
{
if [ -f "/etc/init.d/ss5" ] ; then
systemctl status ss5
if [ $? -ne 0 ] ; then
chmod a+x /etc/init.d/ss5
service ss5 start

fi

else
yum install gcc openldap-devel pam-devel openssl-devel -y


wget https://gitee.com/sosovo/ss/raw/master/ss5-3.8.9.tar.gz --no-check-certificate


tar -vzx -f ss5-3.8.9.tar.gz
cd ss5-3.8.9/
./configure
make
make install

chmod a+x /etc/init.d/ss5
service ss5 start

fi
}
start